package com.item.service;

import com.item.dao.EssenceAuthorLockMapper;
import com.item.dao.model.EssenceAuthorLock;
import com.item.dao.model.EssenceAuthorLockExample;
import com.item.dao.model.EssenceAuthorLockKey;
import java.util.List;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class EssenceAuthorLockService {
    @Autowired
    private EssenceAuthorLockMapper essenceAuthorLockMapper;

    private static final Logger logger = Logger.getLogger(EssenceAuthorLockService.class);

    public int countByExample(EssenceAuthorLockExample example) {
        return this.essenceAuthorLockMapper.countByExample(example);
    }

    public EssenceAuthorLock selectByPrimaryKey(EssenceAuthorLockKey key) {
        return this.essenceAuthorLockMapper.selectByPrimaryKey(key);
    }

    public List<EssenceAuthorLock> selectByExample(EssenceAuthorLockExample example) {
        return this.essenceAuthorLockMapper.selectByExample(example);
    }

    public int deleteByPrimaryKey(EssenceAuthorLockKey key) {
        return this.essenceAuthorLockMapper.deleteByPrimaryKey(key);
    }

    public int updateByPrimaryKeySelective(EssenceAuthorLock record) {
        return this.essenceAuthorLockMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(EssenceAuthorLock record) {
        return this.essenceAuthorLockMapper.updateByPrimaryKey(record);
    }

    public int deleteByExample(EssenceAuthorLockExample example) {
        return this.essenceAuthorLockMapper.deleteByExample(example);
    }

    public int updateByExampleSelective(EssenceAuthorLock record, EssenceAuthorLockExample example) {
        return this.essenceAuthorLockMapper.updateByExampleSelective(record, example);
    }

    public int updateByExample(EssenceAuthorLock record, EssenceAuthorLockExample example) {
        return this.essenceAuthorLockMapper.updateByExample(record, example);
    }

    public int insert(EssenceAuthorLock record) {
        return this.essenceAuthorLockMapper.insert(record);
    }

    public int insertSelective(EssenceAuthorLock record) {
        return this.essenceAuthorLockMapper.insertSelective(record);
    }
}